<template>
	<view>
		<view class=' shopDetail_bodyItemfd1_0_c4_c1'>
			<view class='flex flex-wrap align-start flex-sub shopDetail_bodyItemfd1_0_c4_c1_c0'>
				<image class='shopDetail_bodyItemfd1_0_c4_c1_c0_c0' mode="aspectFill"
					:src='item.head_img'></image>
				<view
					class='flex flex-direction flex-wrap align-stretch flex-sub shopDetail_bodyItemfd1_0_c4_c1_c0_c1'>
					<view class='flex flex-wrap align-center shopDetail_bodyItemfd1_0_c4_c1_c0_c1_c0'>
						<text class='flex-sub shopDetail_bodyItemfd1_0_c4_c1_c0_c1_c0_c0'>{{item.user_nickname}}</text>
						<text class='shopDetail_bodyItemfd1_0_c4_c1_c0_c1_c0_c1'>{{item.create_time}}</text>
					</view>
					<view class='flex flex-wrap align-center'>
						<template v-for="starNum in 5">
							<image @click="item.stars = starNum"
								v-if="item.stars >= starNum" :key="starNum"
								class='shopDetail_star1bodyItemfd1_0_c4_c1_c0_c1_c1' mode="aspectFit"
								:src='STATIC_URL+"51.png"'></image>
							<image @click="item.stars = starNum" v-else :key="starNum"
								class='shopDetail_star1bodyItemfd1_0_c4_c1_c0_c1_c1' mode="aspectFit"
								:src='STATIC_URL+"112.png"'></image>
						</template>
					</view>
				</view>
			</view>
			<view class='shopDetail_bodyItemfd1_0_c4_c1_c1'>{{item.content}}</view>
			<view class='flex flex-wrap align-stretch self-center shopDetail_bodyItemfd1_0_c4_c1_c2' v-if="item.images">
				<view v-for="(v, k) in item.images" :key="k"
					class='flex flex-direction flex-wrap align-stretch self-center shopDetail_bodyItemfd1_0_c4_c1_c2_c0'>
					<image class='shopDetail_bodyItemfd1_0_c4_c1_c2_c0_c0' mode="aspectFill" @tap.stop="previewImage(k, item.images)"
						:src='v'></image>
				</view>
			</view>
			<view
				class='flex flex-wrap align-center self-center flex-sub shopDetail_bodyItemfd1_0_c4_c1_c3'>
				<text class='flex-sub shopDetail_bodyItemfd1_0_c4_c1_c3_c0'>{{item.sku_name}}</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: ['item'],
		data() {
			return {
				"bodyItemfd1_0_c4_c1_c0_c1_c1": "5",
			}
		},
		methods: {
			// 图片预览
			previewImage(index, arr) {
				uni.previewImage({
					current: index,
					urls: arr
				})
			},
		}
	}
</script>

<style lang="scss">
	.shopDetail_bodyItemfd1_0_c4_c1_c3_c0 {
		line-height: 33rpx;
		font-size: 24rpx;
		font-weight: 400;
		color: #999999;
	}
	
	.shopDetail_bodyItemfd1_0_c4_c1_c3 {
		margin: 0rpx 12rpx 0rpx 12rpx;
	}
	
	.shopDetail_bodyItemfd1_0_c4_c1_c2_c2_c0 {
		width: 220rpx;
		height: 220rpx;
		border-radius: 8rpx 8rpx 8rpx 8rpx;
	}
	
	.shopDetail_bodyItemfd1_0_c4_c1_c2_c2 {
		margin: 12rpx 6rpx 12rpx 6rpx;
	}
	
	.shopDetail_bodyItemfd1_0_c4_c1_c2_c1_c0 {
		width: 220rpx;
		height: 220rpx;
		border-radius: 8rpx 8rpx 8rpx 8rpx;
	}
	
	.shopDetail_bodyItemfd1_0_c4_c1_c2_c1 {
		margin: 12rpx 6rpx 12rpx 6rpx;
	}
	
	.shopDetail_bodyItemfd1_0_c4_c1_c2_c0_c0 {
		width: 220rpx;
		height: 220rpx;
		border-radius: 8rpx 8rpx 8rpx 8rpx;
	}
	
	.shopDetail_bodyItemfd1_0_c4_c1_c2_c0 {
		margin: 12rpx 6rpx 12rpx 6rpx;
	}
	
	.shopDetail_bodyItemfd1_0_c4_c1_c2 {
		margin: 12rpx 0rpx 12rpx 0rpx;
	}
	
	.shopDetail_bodyItemfd1_0_c4_c1_c1 {
		font-size: 28rpx;
		font-weight: 400;
		color: #333333;
		line-height: 40rpx;
		// -webkit-line-clamp: 2;
		// overflow: hidden;
		// text-overflow: ellipsis;
		// display: -webkit-box;
		// -webkit-box-orient: vertical;
		margin: 0rpx 12rpx 0rpx 12rpx;
	}
	
	.shopDetail_star1bodyItemfd1_0_c4_c1_c0_c1_c1 {
		height: 18rpx;
		margin: 0rpx 2rpx 0rpx 2rpx;
		width: 18rpx;
	}
	
	.shopDetail_star1bodyItemfd1_0_c4_c1_c0_c1_c1 {
		width: 18rpx;
		height: 18rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		margin: 0rpx 2rpx 0rpx 2rpx;
	}
	
	.shopDetail_bodyItemfd1_0_c4_c1_c0_c1_c0_c1 {
		line-height: 30rpx;
		font-size: 24rpx;
		font-weight: 400;
		color: #999999;
	}
	
	.shopDetail_bodyItemfd1_0_c4_c1_c0_c1_c0_c0 {
		line-height: 40rpx;
		font-size: 28rpx;
		font-weight: 400;
		color: #333333;
	}
	
	.shopDetail_bodyItemfd1_0_c4_c1_c0_c1_c0 {
		margin: 0rpx 0rpx 8rpx 0rpx;
	}
	
	.shopDetail_bodyItemfd1_0_c4_c1_c0_c1 {
		margin: 0rpx 0rpx 24rpx 16rpx;
	}
	
	.shopDetail_bodyItemfd1_0_c4_c1_c0_c0 {
		width: 56rpx;
		height: 56rpx;
		border-radius: 50rpx 50rpx 50rpx 50rpx;
	}
	
	.shopDetail_bodyItemfd1_0_c4_c1_c0 {
		margin: 0rpx 12rpx 0rpx 12rpx;
		
	}
	
	.shopDetail_bodyItemfd1_0_c4_c1 {
		padding: 32rpx 0rpx 32rpx 0rpx;
		margin: 0rpx 24rpx 0rpx 24rpx;
	}
</style>